// 侧边栏控制器
import 'package:flutter/cupertino.dart';
import 'package:flutter_inner_drawer/inner_drawer.dart';

class CreateInnerDrawerKey {
  static final GlobalKey<InnerDrawerState> innerDrawerKey = GlobalKey<InnerDrawerState>();

  // 侧边栏显示或隐藏切换
  static void toggle() {
    innerDrawerKey.currentState.toggle(
        direction: InnerDrawerDirection.end
    );
  }

}
